<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/email_warn_kg_pinguan/Email_Warn_Kg_Pinguan.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/email_warn_kg_pinguan/Email_Warn_Kg_Pinguan.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Email_Warn_Kg_Pinguan",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "预警邮箱空光品管部",
                name: "email_warn_kg_pinguan/Email_Warn_Kg_Pinguan",
                newTabEdit: false,
                url: "/Email_Warn_Kg_Pinguan/",
                sortName: "Id"
            });
            const editFormFields = ref({"Group":"","PartnerId":"","TechEngineer":"","TechEmail":"","QualityEngineer":"","QualityEmail":"","Manager":"","ManagerEmail":"","Remarks":""});
            const editFormOptions = ref([[{"title":"项目组","field":"Group"},
                               {"title":"客户代码","field":"PartnerId"}],
                              [{"title":"技术工程师","field":"TechEngineer"},
                               {"title":"技术邮箱","field":"TechEmail"}],
                              [{"title":"质量工程师","field":"QualityEngineer"},
                               {"title":"质量邮箱","field":"QualityEmail"}],
                              [{"title":"项目组长","field":"Manager"},
                               {"title":"组长邮箱","field":"ManagerEmail"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({"Group":"","PartnerId":"","TechEngineer":"","TechEmail":"","QualityEngineer":"","QualityEmail":"","Manager":"","ManagerEmail":""});
            const searchFormOptions = ref([[{"title":"客户代码","field":"PartnerId"},{"title":"项目组","field":"Group"},{"title":"技术工程师","field":"TechEngineer"},{"title":"技术邮箱","field":"TechEmail"}],[{"title":"质量工程师","field":"QualityEngineer"},{"title":"质量邮箱","field":"QualityEmail"},{"title":"项目组长","field":"Manager"},{"title":"组长邮箱","field":"ManagerEmail"}]]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Group",title:"项目组",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"PartnerId",title:"客户代码",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"TechEngineer",title:"技术工程师",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"TechEmail",title:"技术邮箱",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"QualityEngineer",title:"质量工程师",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"QualityEmail",title:"质量邮箱",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Manager",title:"项目组长",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"ManagerEmail",title:"组长邮箱",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
